<template>
    <div class="actions-bar">
        <span @click="onDeleteAllRead"><div class="icon-delete"></div>删除已读</span>
        <span class="divider">|</span>
        <span @click="onMarkAllAsRead"><div class="icon-checked"></div>一键已读</span>
    </div>
</template>
<script setup lang="ts">
const emit = defineEmits(['deleteAllRead', 'markAllAsRead'])
const onDeleteAllRead = () => {
    console.log('删除已读')
    emit('deleteAllRead')
}
const onMarkAllAsRead = () => {
    console.log('一键已读')
    emit('markAllAsRead')
}
</script>
<style scoped lang="scss">
.actions-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    font-size: 14px;
    color: #999;
    background-color: #F7F8F9;
    .icon-delete{
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('@/assets/messageImg/编组 8@2x.png');
        background-size: 100% 100%;
        background-position: center;
    }
        .icon-checked{
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('@/assets/messageImg/编组 8备份@2x.png');
        background-size: 100% 100%;
        background-position: center;
    }
}
</style>
